package com.cloud.lan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloud.lan.api.dto.req.TestModelReq;
import com.cloud.lan.api.dto.resp.TestModelResp;
import com.cloud.lan.entity.base.BaseRequest;
import com.cloud.lan.entity.base.BaseResponse;
import com.cloud.lan.entity.base.PageRequest;
import com.cloud.lan.entity.base.PageResponse;
import com.cloud.lan.entity.model.dataobject.TestModelDO;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 测试信息表 服务类
 * </p>
 *
 * @author xyqierkang@163.com
 * @since 2021-12-05
 */
@Transactional(rollbackFor = Exception.class)
public interface ITestModelService extends IService<TestModelDO> {

    PageResponse<List<TestModelResp>> list(@RequestBody PageRequest<TestModelReq> request);

    BaseResponse<Object> add(@RequestBody BaseRequest<TestModelReq> request);

    BaseResponse<Object> update(@RequestBody BaseRequest<TestModelReq> request);

    BaseResponse<Object> delete(@RequestBody BaseRequest<TestModelReq> request);
}
